//
//  NSFileManager+Extension.m
//  AFNetworking
//
//  Created by SY on 2019/2/26.
//

#import "NSFileManager+Extension.h"

@implementation NSFileManager (Extension)
+ (BOOL)isDirectory:(NSString *)filePath{
    BOOL isDirectory = NO;
    [[self defaultManager] fileExistsAtPath:filePath isDirectory:&isDirectory];
    return isDirectory;
}
+(BOOL) isFileExist:(NSString *)filePath{
    BOOL result = [[self defaultManager] fileExistsAtPath:filePath];
    NSLog(@"这个文件已经存在：%@",result?@"是的":@"不存在");
    return result;
}
@end
